home *** CD-ROM | disk | FTP | other *** search
- Path: user2.mnsinc.com!huang
- From: huang@mnsinc.com (Szu-Wen Huang)
- Newsgroups: comp.lang.c
- Subject: Re: Q:Hex to Decimal?
- Date: 12 Apr 1996 19:47:10 GMT
- Organization: Monumental Network Systems
- Message-ID: <4kmbvu$a2o@news1.mnsinc.com>
- References: <DpqLyJ.8Jy@rci.ripco.com> <4klr9f$29d@news1.mnsinc.com> <4km08u$qgo@solutions.solon.com>
- NNTP-Posting-Host: user2.mnsinc.com
- X-Newsreader: TIN [version 1.2 PL2]
-
- Peter Seebach (seebs@solutions.solon.com) wrote:
- : In article <4klr9f$29d@news1.mnsinc.com>,
- : Szu-Wen Huang <huang@mnsinc.com> wrote:
- : >Martin Ambuhl (mambuhl@ripco.com) wrote:
- : >: sprintf(target_string,"x",(unsigned)your_integer);
-
- : >Which prints an "x" to your string and formats your hard disk if you
- : >have a mean C compiler. :) Try "%x" as the format string.
-
- : Actually, it can't do anything hostile; *printf guarantee that extra arguments
- : are ignored.
-
- Awww, shucks :) Wait till you see *my* sprintf() kill a hard disk ;)
-